<?php
	class loaispbs
	{
		public $MaLoai = "";
		public $TenLoai = "";
		
		public function Add()
		{
			$db = new loaispdb();
			return $db->Add($this->TenLoai);
		}
		
		public function Delete()
		{
			$db = new loaispdb();
			return $db->Delete($this->MaLoai);
		}
		
		public function Update()
		{
			$db = new loaispdb();
			return $db->Update($this->MaLoai, $this->TenLoai);
		}
		
		public function GetList()
		{
			$db = new loaispdb();
			return $db->GetList($this->MaLoai, $this->TenLoai);
		}
		public function Find()
		{
			$db = new loaispdb();
			return $db->Find($this->TenLoai);
		}
	}
?>